{include file="public/head"/}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">编辑会员信息</div>
                <div class="layui-card-body" pad15>
                    <div class="layui-form" wid100 lay-filter="">

                        <div class="layui-form-item">
                            <label class="layui-form-label">会员等级</label>
                            <div class="layui-form-mid">
                                {if $info.user_title ==0}
                                    无
                                {/if}
                                {if $info.user_title ==1}
                                    普通会员
                                {/if}
                                {if $info.user_title ==2}
                                    高级会员
                                {/if}
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">用户昵称</label>
                            <div class="layui-input-inline">
                                <input type="text" name="username" lay-verify="required" value="{$info.username}" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">用户名在4到12个字符之间。</div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">密码</label>
                            <div class="layui-input-inline">
                                <input type="password" name="password" placeholder="请输入密码" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                                密码必须大于6位，小于15位
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">电话</label>
                            <div class="layui-input-inline">
                                <input type="number" name="mobile" lay-verify="phone" value="{$info.mobile}" placeholder="请输入用户电话" class="layui-input">
                            </div>
                            <div class="layui-form-mid layui-word-aux">
                                只能填写数字。
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                {if $info}
                                <input type="hidden" name="id" value="{$info.id}">
                                {/if}
                                <button class="layui-btn" lay-submit lay-filter="edit-btn">确认保存</button>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/foot"/}
<script>
    layui.config({
        base: '__LAYADMIN__/',
        version: true
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','users']);
</script>
</body>
</html>